import http from "@/utils/request"
//获取角色
export const getRoleApi = (params) => http.get("/role/getRole", {
    params
})
//角色授权
export const grantRoleApi = (params) => http.post("/role/grantRole", params)

//获取角色权限

export const getRolePermissionApi = params => http.get("role/getRolePermission", {
    params
})

//分配角色

export const assignmentRoleApi = (params = {}) => http.post('role/roleAssignment', params)